<?php get_header(); ?>  
<div class="container">
	<div id="da-slider" class="da-slider" style="background-position: 5400% 0%;">
		<dd class="staticslide staticslide-current">					
			<h2 class="title_community_use_one"><a href="#"><b>NHATTIENDAN </b></a></h2>
			<p class="separated" style="height: 1px; width: 35%;"></p>
			<p class="title_community_use_two" style="margin-top: 20px;"><a href="../products/benh-gut-thao-duoc-nhat-tien-dan.html">Thực phẩm chức năng</a></p>
			<p class="title_community_use_two" style="margin-top: 50px;"><a href="../products/benh-gut-thao-duoc-nhat-tien-dan.html">Thảo dược tự nhiên</a></p>
			<p class="title_community_use_two" style="margin-top: 81px;"><a href="../products/benh-gut-thao-duoc-nhat-tien-dan.html">Hỗ trợ điều trị Gout</a></p>
			<p class="separated" style="height: 1px; margin-top: 115px; width: 35%;"></p>
			<p class="headingline" style="margin-top: 150px;">
			<?php
				$category_id = get_category_by_slug( 'hot-news' )->cat_ID;
				
				$args=array(
					'cat' => $category_id,
					'post_type' => 'post',
					'post_status' => 'publish',
					'posts_per_page' => 5
				);
				$my_query = new WP_Query($args);
				
				$count = 1;
				$tat_theme_options_arr = get_option( 'tat_theme_options_arr' );
				$maximum_news = $tat_theme_options_arr['num_of_show_tat_hot_news'] ? $tat_theme_options_arr['num_of_show_tat_hot_news'] : 5;
				if( $my_query->have_posts() ) {
					while ($my_query->have_posts()) : $my_query->the_post(); ?>
						<a href="<?php the_permalink(); ?>" class="a_head"><?php the_title(); ?></a>
					 <?php
						if ( $count >= $maximum_news) :
							break;
						endif;
						$count++;
					endwhile;
				}

				wp_reset_postdata()
			?>
			</p>
			<p class="headingline" style="margin-top: 350px;">
			<img src="wp-content/uploads/2013/11/hotline.png" alt="Hotline nhattiendan.vn"/>
			</p>
		</dd>
	</div>
</div>		 
<?php get_footer(); ?>  